﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using LibFriesland_Campina_CRM;

namespace WebServiceFriesland_Campina_CRM
{
    /// <summary>
    /// Summary description for FCStockCheckingWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FCStockCheckingWS : System.Web.Services.WebService
    {
        [WebMethod]
        public int addStockCheckingbyNA(string pDatetime_phone_checking, string pBy_product, int pCurrent_quantity, string pComment_checking, string pBy_shop, string pBy_na, string pSession_checking)
        {
            BizStockChecking stockChecking = new BizStockChecking(-1, Thuvien.myConvertDatetimeToString(DateTime.Now), pDatetime_phone_checking, pBy_na, pBy_shop, pSession_checking);
            BizStockCheckingDetail stockCheckingDetail = new BizStockCheckingDetail(-1, pBy_product, pCurrent_quantity, pComment_checking);
            return BizStockChecking.addStockCheckingbyNA(stockChecking, stockCheckingDetail);
        }
    }
}
